package com.emep.changzhi.analyse.repository.Technology;

import com.emep.changzhi.analyse.entity.Technology.Denitrification;
import org.springframework.data.cassandra.repository.CassandraRepository;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * 脱销
 */
public interface DenitrificationRepository extends CassandraRepository<Denitrification,Long> {

    @Query("select * from denitrification limit :pageSize")
    List<Denitrification> denitrificationHome(@Param("pageSize") Integer pageSize);
    @Query("select * from denitrification where token(id)>token(:id) limit :pageSize")
    List<Denitrification> denitrificationFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);
}
